package com.leetroll.api.service;

import com.leetroll.common.entity.File;

import java.util.List;

public interface FileService extends SuperService<File>{
    String getRescMainFile(Long rescId);
    List<File> listByRescId(Long rescId);

    Boolean saveFile(Long itemId,String key,String name,String suffix,String bucket,String type,Long size,String format);

    /**
     * 获取item的附件
     */
    File getAttachByRescId(Integer itemId);

    List<File> listByIdList(List<Long> collect);
}
